package com.Abstract;

/**
 * @Author 小闽
 * @Date 2024/9/11 14:41
 * @PackageName: com.Abstract
 * @ClassName: Manager
 * @Description: 经理类
 * @Version 1.0
 */
public class Manager extends Employee{
    private double bonus;
    /**
     * 构造方法
     *
     * @param name
     * @param id
     * @param salary
     */
    public Manager(String name, int id, double salary, double bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    @Override
    public void work() {
        System.out.println("经理" + getName() + "正在工作中...");
    }
}
